home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / TerminalTools.p < prev    next >
Text File  |  1996-05-01  |  3KB  |  127 lines

  1. {
  2.      File:        TerminalTools.p
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT TerminalTools;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __TERMINALTOOLS__}
  28. {$SETC __TERMINALTOOLS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC TerminalToolsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __DIALOGS__}
  35. {$I Dialogs.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __TERMINALS__}
  38. {$I Terminals.p}
  39. {$ENDC}
  40.  
  41. {$PUSH}
  42. {$ALIGN MAC68K}
  43. {$LibExport+}
  44.  
  45. {$IFC FOR_SYSTEM7_ONLY }
  46.  
  47. CONST
  48.     tdefType                    = 'tdef';
  49.     tvalType                    = 'tval';
  50.     tsetType                    = 'tset';
  51.     tlocType                    = 'tloc';
  52.     tscrType                    = 'tscr';
  53.     tbndType                    = 'tbnd';
  54.     tverType                    = 'vers';                        {  messages  }
  55.     tmInitMsg                    = 0;
  56.     tmDisposeMsg                = 1;
  57.     tmSuspendMsg                = 2;
  58.     tmResumeMsg                    = 3;
  59.     tmMenuMsg                    = 4;
  60.     tmEventMsg                    = 5;
  61.     tmActivateMsg                = 6;
  62.     tmDeactivateMsg                = 7;
  63.     tmGetErrorStringMsg            = 8;
  64.     tmIdleMsg                    = 50;
  65.     tmResetMsg                    = 51;
  66.     tmKeyMsg                    = 100;
  67.     tmStreamMsg                    = 101;
  68.     tmResizeMsg                    = 102;
  69.     tmUpdateMsg                    = 103;
  70.     tmClickMsg                    = 104;
  71.     tmGetSelectionMsg            = 105;
  72.     tmSetSelectionMsg            = 106;
  73.     tmScrollMsg                    = 107;
  74.     tmClearMsg                    = 108;
  75.  
  76.     tmGetLineMsg                = 109;
  77.     tmPaintMsg                    = 110;
  78.     tmCursorMsg                    = 111;
  79.     tmGetEnvironsMsg            = 112;
  80.     tmDoTermKeyMsg                = 113;
  81.     tmCountTermKeysMsg            = 114;
  82.     tmGetIndTermKeyMsg            = 115;                            {  messages for validate DefProc     }
  83.     tmValidateMsg                = 0;
  84.     tmDefaultMsg                = 1;                            {  messages for Setup DefProc     }
  85.     tmSpreflightMsg                = 0;
  86.     tmSsetupMsg                    = 1;
  87.     tmSitemMsg                    = 2;
  88.     tmSfilterMsg                = 3;
  89.     tmScleanupMsg                = 4;                            {  messages for scripting defProc     }
  90.     tmMgetMsg                    = 0;
  91.     tmMsetMsg                    = 1;                            {  messages for localization defProc   }
  92.     tmL2English                    = 0;
  93.     tmL2Intl                    = 1;
  94.  
  95.  
  96. TYPE
  97.     TMSearchBlockPtr = ^TMSearchBlock;
  98.     TMSearchBlock = RECORD
  99.         theString:                StringHandle;
  100.         where:                    Rect;
  101.         searchType:                TMSearchTypes;
  102.         callBack:                TerminalSearchCallBackUPP;
  103.         refnum:                    INTEGER;
  104.         next:                    TMSearchBlockPtr;
  105.     END;
  106.  
  107.     TMSetupStructPtr = ^TMSetupStruct;
  108.     TMSetupStruct = RECORD
  109.         theDialog:                DialogPtr;
  110.         count:                    INTEGER;
  111.         theConfig:                Ptr;
  112.         procID:                    INTEGER;                                {  procID of the tool  }
  113.     END;
  114.  
  115.     TMSetupPtr                            = ^TMSetupStruct;
  116. {$ENDC}
  117. {$ALIGN RESET}
  118. {$POP}
  119.  
  120. {$SETC UsingIncludes := TerminalToolsIncludes}
  121.  
  122. {$ENDC} {__TERMINALTOOLS__}
  123.  
  124. {$IFC NOT UsingIncludes}
  125.  END.
  126. {$ENDC}
  127.